import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL}/merchant/user/index`,
		name: "获取用户列表",
		get: async function (data = {}) {
			return await http.get(this.url, data);
		}
	},
	sendCoupon: {
		url: `${config.API_URL}/merchant/user/sendCoupon`,
		name: "赠送优惠券",
		post: async function (data = {}) {
			return await http.post(this.url, data);
		}
	},
	detail: {
		url: `${config.API_URL}/merchant/user/detail`,
		name: "用户详情",
		get: async function (data = {}) {
			return await http.get(this.url, data);
		}
	}
}
